<template>
  <div class="box-item">
    <div class="box-item-title">{{ title }}</div>
    <v-chart :option="chartOption" style="width: 100%;height: 320px;"></v-chart>
  </div>
</template>

<script>
export default {
  name: 'box-item-five',
  props: {
    title: String,
    info: {
      type: Array,
      default () {
        return []
      }
    }
  },
  computed: {
    chartOption () {
      return {
        legend: {
          top: 'bottom',
          textStyle: {
            color: '#6b92b5',
          }
        },
        series: [
          {
            type: 'pie',
            radius: [30, 80],
            center: ['50%', '50%'],
            label: {
              color: '#50fdfc'
            },
            itemStyle: {
              borderRadius: 8
            },
            data: this.info
          }
        ]
      }
    }
  }
}
</script>

<style scoped>

</style>
